﻿	<?php $userinfo = getuserinfo();?>
	{if !$userinfo}
	<!--侧边栏(未登录)-->
		<div class="Allsub">
			<ul>
				<li class="top1"><a href="/register/" class="subreg">免费注册</a></li>
				<li class="top1"><a href="/login/{__SELF__}" class="sublogin">用户登录</a></li>
				<li class="top1"><a href="/news/" class="subzx">网站资讯</a></li>
				<li class="top1"><a href="javascript:void(0);" class="subcz">收藏本站</a></li>
				<li class="top1"><a href="javascript:void(0);" class="subidx">设为首页</a></li>
				<li class="top1" style="text-align:center; padding:5px 0px;"><img src="{THEME_STYLE_PATH}style/images/wx2wm.jpg" width="50"><br><span style="color:#828A99">“扫一扫”添加<br>官方微信</span></li>
				<li class="top2"><span class="subkf">客服主管</span><br><span class="subkf1">239301393</span></li>
				<li class="top2"><span class="subkf">网站合作</span><br><span class="subkf1">239301395</span></li>
				<li class="top2"><span class="subkf">提现咨询</span><br><span class="subkf1">239301394</span></li>
			</ul>
		</div>
		<!--侧边栏(未登录-->
	{else}
		<div class="Allsub">
			<ul>
				<li class="top1">
					<div class="Subper">
						<ul class="Subhead">
							<li class="a1">
								<a href="{U('Member/Profile/index')}"><img src="{THEME_STYLE_PATH}style/avatar/default/<?php if( getUserInfo($this->userid,'photo',TRUE)){echo getUserInfo($this->userid,'photo',TRUE);}else{echo 1;}?>.jpg" height="40" width="40"></a>
							</li>
							<li class="a2">
								<a href="{U('Member/Index/logout')}">[退出]</a>
								<a href="#" class="submail">
								<img src="{THEME_STYLE_PATH}style/images/mailico.gif"></a>
							</li>
						</ul>
						<p class="a1"><span class="ofe"><?php echo $userinfo['nickname']?></span><br><span style="color:#d9e1ef;">ID:<?php echo $userinfo['userid']?></span></p>
						<p class="a1"><span class="da3">当前{type_change()}币：</span><br><span class="ofe userG" id="userG"><?php echo doFormatMoney($userinfo['u_coin'])?></span></p>
						<p class="a1"><span class="da3">当前{type_change()}豆：</span><br><span class="ofe userF" id="userF"><?php echo doFormatMoney($userinfo['u_bean'])?></span></p>
						<p class="a2"><a href="{U('Member/Index/index')}" class="subhy">会员中心</a></p>
					</div>
				</li>
				<li class="top1"><a href="/news/" class="subzx">网站资讯</a></li>
				<li class="top1" style="text-align:center; padding:5px 0px;"><img src="{THEME_STYLE_PATH}style/images/wx2wm.jpg" width="50"><br><span style="color:#828A99">“扫一扫”添加<br>官方微信</span></li>
				<li class="top1"><a href="javascript:void(0);" class="subcz">收藏本站</a></li>
				<li class="top1"><a href="javascript:void(0);" class="subidx">设为首页</a></li>
				<li class="top2"><a target="_blank" href="http://shang.qq.com/wpa/qunwpa?idkey=bb4a16b6b3a59fe1f429fd0a1471dd22296f9014a51454ec29e213b6a7cd6c95"><span class="subkf">会员QQ群</span><br><span class="subkf1">383949875</span></a></li>
			</ul>
		</div>
		<!--侧边栏(登录-->
		<!--插入侧边栏-->
		{/if}
		
	<script type="text/javascript">
	$('.subcz').click(function(){juxiangyou.core.func.addFavorite(juxiangyou.lib.constant.__SITE_URL,document.title);});
	$('.subidx').click(function(){juxiangyou.core.func.setHome(this,juxiangyou.lib.constant.__SITE_URL);});
	</script>
